﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Business
{
    /// <summary>
    /// 定义巡检结果展现的标题
    /// </summary>
    public class InspectionTitleAttribute : Attribute
    {
        private string _title;
        private int _rows;
        private string _parent;
        private int _parentCols;

        /// <summary>
        /// 定义巡检Excel行标题
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="rows">占位行数</param>
        /// <param name="parentTitle">父节点标题</param>
        /// <param name="parentCols">父节点占的列数</param>
        public InspectionTitleAttribute(string title, int rows = 1, string parentTitle = "", int parentCols = 0)
        {
            this._title = title;
            this._rows = rows;
            this._parent = parentTitle;
            this._parentCols = parentCols;
        }

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public int Rows
        {
            get { return _rows; }
            set { _rows = value; }
        }

        public string ParentTitle
        {
            get { return _parent; }
            set { _parent = value; }
        }

        public int ParentCols
        {
            get { return _parentCols; }
            set { _parentCols = value; }
        }
    }
}
